let Father = require('./Father');
let model = require('../../model/base')

class Son extends Father {
    async index() {
        let sql = 'select * from yiqing where date=?';
        // console.log(sql);
        let model1 = new model();
        let time = this.req.query['date'];
        let result = await model1.select(sql, time);
        console.log(result);
        return this.nunjucks.render('demo.html', {result});
    }
}
module.exports = Son;